﻿@{
    ViewBag.Title = "民主评议初始化";
}
<!DOCTYPE html>
<html>
@Html.Partial("LoadPanelPartial")
<head>
<title></title>
    @if (false)
    {
        <script src="../../../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
    }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>

    @Html.DevExpress().GetStyleSheets(

        new StyleSheet { ExtensionType = ExtensionType.ListBox, Theme = DevExpressHelper.Theme }
)
    @Html.DevExpress().GetScripts(
        new Script { ExtensionType = ExtensionType.ListBox }
)
    <script type="text/javascript">
        $(document).ready(function () {
            var hdisFstatus = $("#hdisFstatus").val();
            if (hdisFstatus != "") {
                if (hdisFstatus == "B") {
                    $("#div1").hide();
                    $("#div2").hide();
                    $("#div3").hide();
                    $("#div4").show();
                 }else{
                    $("#div1").show();
                    $("#div2").hide();
                    $("#div3").hide();
                    $("#div4").hide();
                 }

            } else {

                $("#div1").hide();
                $("#div2").hide();
                $("#div3").show();
                $("#div4").hide();
            }

        });
        

        function ok() {
            $.ajax({
                type: 'POST',
                url: rootPath + '/Admin/PeerReviewInit/Init',
                data: { peerReviewID: $("#hdpeerReviewID").val() },
                success: function (result) {
                    if (result == "Y") {
                        $("#div1").hide();
                        $("#div2").show();
                        $("#div3").hide();
                        $("#div4").hide();
                    } else if (result == "N") {
                        alert("评议初始化失败！");
                    } else {
                        alert("评议初始化存在参数错误！");
                    }
                }
            });
        }


        function cencel() {
            window.location.href = rootPath + "/Index/Content";
         }

    </script>

</head>
<body>
<script type="text/javascript">
    if (top.boardtop) top.boardtop.head_txt.innerText = "民主评议初始化";

</script>
        <div id="div1" style="display:none;">
        
        <table valign="middle"  align="center" border="0" class="table1">
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr height="30">
                <td align="center" width="40%" colspan="2" style="font-size: 12px;text-align:center;">
                系统将清除所有的历史评议数据，是否确认？
                    </td>

            </tr>
            <tr height="30">
                <td align="right">
                    @Html.DevExpress().Button(settings =>
               {
                   settings.Name = "btnOK";
                   settings.Text = "确定";
                   settings.ControlStyle.CssClass = "button";
                   settings.ClientSideEvents.Click = "ok";
                   settings.Images.Image.Url = Url.Content("~/Content/ControlImages/ok.png");
               }).GetHtml()
                    </td>
                    <td align="left">
                    @Html.DevExpress().Button(settings =>
               {
                   settings.Name = "btnCancel";
                   settings.Text = "取消";
                   settings.ControlStyle.CssClass = "button";
                   settings.ClientSideEvents.Click = "cencel";
                   settings.Images.Image.Url = Url.Content("~/Content/ControlImages/cancel.png");
               }).GetHtml()                   
                </td>
            </tr>
        </table>
            </div>

            <div style="display:none;" id="div2">
        <table valign="middle"  align="center" border="0" class="table2">
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr height="30">
                <td align="center" width="40%" colspan="2" style="font-size: 12px;text-align:center;">
                <img src="@Url.Content("~/Content/ControlImages/information.png")"/>&nbsp;&nbsp;评议初始化成功!
                    </td>

            </tr>

        </table>
        </div>

    <div id="div3"  style="display:none;">
         <table valign="middle"  align="center" border="0" class="table3">
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr height="30">
                <td align="center" width="40%" colspan="2" style="font-size: 12px;text-align:center;">
               &nbsp;&nbsp;评议已经初始化！
                    </td>

            </tr>

        </table>
    
    </div>
     <div id="div4" style="display:none;">
         <table valign="middle"  align="center" border="0" class="table4">
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr height="30">
                <td align="center" width="40%" colspan="2" style="font-size: 12px;text-align:center;">
               &nbsp;&nbsp;评议主题已启动，无法初始化!
                    </td>

            </tr>

        </table>
    
    </div>

    @Html.Hidden("hdisFstatus", ViewData["isFstatus"])
    @Html.Hidden("hdpeerReviewID", ViewData["peerReviewID"])
    <script type="text/javascript">
        lp.Hide();
    </script>

</body>
</html>

